FROM registry.cn-hangzhou.aliyuncs.com/lskdxhl/jdk_li:8

MAINTAINER css <jlwswk@126.com>

RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories

#设置时区
ENV TZ=Asia/Shanghai

RUN apk --no-cache add tzdata zeromq ca-certificates net-tools busybox-extras \
    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
    && echo '$TZ' > /etc/timezone


COPY target/shop-eureka-0.0.1-SNAPSHOT.jar /data/shop/eureka/shop-eureka-0.0.1-SNAPSHOT.jar



#EXPOSE 8083
ENTRYPOINT ["java","-jar","-Xms1024m", "-Xmx1024m","/data/shop/eureka/shop-eureka-0.0.1-SNAPSHOT.jar","--spring.config.location=/data/shop/eureka/application.properties"]
